package com.fas.system.mapper;

import com.fas.system.domain.FasInspectionGroup;
import com.fas.system.domain.vo.GroupUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FasInspectionGroupMapper {

    /**
     * 添加巡检组
     * @param fasInspectionGroup
     * @return
     */
    int insertFasInspectionGroup(FasInspectionGroup fasInspectionGroup);
    /**
     * 删除巡检组
     * @param groupCodes
     * @return
     */
    int deleteFasInspectionGroup(@Param("groupCodes") Integer[] groupCodes);

    /**
     * 修改巡检组
     * @param fasInspectionGroup
     * @return
     */
    int updateFasInspectionGroup(FasInspectionGroup fasInspectionGroup);

    List<FasInspectionGroup> queryAll(FasInspectionGroup fasInspectionGroup);

    FasInspectionGroup findById(Integer groupCode);

    List<GroupUser> findXCUsersPage(@Param("deptId") Integer deptId, @Param("userList") List<Integer> userList,
                                    @Param("userName") String userName,@Param("phoneNumber") String phoneNumber,
                                    @Param("iName") String iName);
}
